/*
 * tools.hpp
 *
 *  Created on: 30 janv. 2011
 *      Author: quentin
 */

#ifndef TOOLS_HPP_
#define TOOLS_HPP_

#include <iostream>
#include <fstream>
#include <typeinfo>
#include <string.h>
#include <utility>
#include <QString>
#include <QDir>
#include "MidiEvent.hpp"
#include "MetaEvent.hpp"
#include "MidiFile.hpp"
#include "InfosMidi.hpp"


MidiFile* loadMidi(MidiFile* midiFile, const char* nomMidi);
void getInfoMidi(MidiFile* myMidiFile, InfosMidi* infos);
double deltaTimeToMS(double deltaTime, int tempo, int division);
double getTempo(int* tab, int taille);
QString recupNomFichierSelectionne(const QString & cheminFichier);
QString formaterCommeNomProjet(const QString & nomDepart);


#endif /* TOOLS_HPP_ */
